export function setCateTextColor(text1, text2, text3) {
  let navEl = document.getElementsByClassName('el-tag--light');

  for (let i = 0; i < navEl.length; i++) {
    let item = navEl[i];
    if (item.innerText === text1) {
      item.style.color = '#1f9872';
    } else if (item.innerText === text2) {
      item.style.color = '#1ab0e0';
    } else if (item.innerText === text3) {
      item.style.color = '#003e67';
    }
  }
}

// 判断传递过来的字符串长度情况
export function isOmit(text, maxLength) {
  let bool = false;
  if (text.length > maxLength) {
    bool = true;
  }
  return bool;
}



